<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge,chrome=1">
    <meta name="referrer" content="never">
    <title>c.html</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        ul {
            list-style: none;
        }
    </style>
</head>
<body>
    
    <script type="text/javascript">
        console.log("C页面log的内容");
        window.onmessage = function (e){
            console.log("C页面接受到消息:", e.data);  
            // e.source 代表发送来消息的页面的window对象
            // e.origin 发送来消息的源地址
            e.source.postMessage("Hi, I get your message!", e.origin);         
        }
    </script>
</body>
</html>